package com.huice.day11;

import org.testng.annotations.Test;

public class GetUpdateProductInfo01 extends Template{

	@Test
	public void getUpdateProductInfo01(){	
		setPara(METHOD, "getUpdateProductInfo");
		setPara(PARA, "<product-code-search-request><update-date-start>2016-10-01</update-date-start><start>1</start><end>50</end></product-code-search-request>");
		send();
		setEnvironment("product_id", xmlCheck().getElementText("//product-code-info[1]/product-code"));
		checkPoint.equals(getStatus(), "200", "返回状态码200");
		checkPoint.equals(xmlCheck().getElements("//product-code-info").size(), 50, "返回产品列表数量正确");
	}
}
